2025-03-09

What is this?

We shall plot all the data points of the mtcars dataset and fit a linear regression line to it.

  • x-axis: Weight of the car
  • y-axis: Miles per gallon (MPG)

MPG vs WT Plot

## `geom_smooth()` using formula = 'y ~ x'

Thank You

Githib repo for this slide can be found here